package com.wl.service;

import com.wl.model.NewsCategory;
import com.wl.model.NewsInfo;
import com.wl.utils.PageUtil;
import com.wl.vo.NewsInfoVo;

import java.io.UnsupportedEncodingException;
import java.util.List;

/**
 * @author lb
 * @date 2018/4/17 18:04
 */

public interface NewsInfoService {
    List<NewsInfo> getLimitNewsInfo(PageUtil pageUtil);

    int getCountNewsInfo();

    List<NewsInfo> findByNewsInfo(NewsInfo newsInfo) throws UnsupportedEncodingException;

    void deleteNewsInfo (long newsId);

    void addNewsInfo (NewsInfo newsInfo) throws UnsupportedEncodingException;

    void updateNewsInfo (NewsInfo newsInfo) throws UnsupportedEncodingException;

    NewsInfo getNewsInfo (long newsId);

    List<NewsInfo> allNewsInfo ();

    List<NewsCategory> allNewsCategory();

    /**
     * 新闻详情信息
     */
    NewsInfoVo newsInfoDetail(Long newsId);
}
